package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StandardNoEsMapper;
import com.ruoyi.system.domain.StandardNoEs;
import com.ruoyi.system.service.IStandardNoEsService;

/**
 * standardNoesService业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-11
 */
@Service
public class StandardNoEsServiceImpl implements IStandardNoEsService 
{
    @Autowired
    private StandardNoEsMapper standardNoEsMapper;

    /**
     * 查询standardNoes
     * 
     * @param id standardNoes主键
     * @return standardNoes
     */
    @Override
    public StandardNoEs selectStandardNoEsById(String id)
    {
        return standardNoEsMapper.selectStandardNoEsById(id);
    }

    /**
     * 查询standardNoes列表
     * 
     * @param standardNoEs standardNoes
     * @return standardNoes
     */
    @Override
    public List<StandardNoEs> selectStandardNoEsList(StandardNoEs standardNoEs)
    {
        return standardNoEsMapper.selectStandardNoEsList(standardNoEs);
    }

    /**
     * 新增standardNoes
     * 
     * @param standardNoEs standardNoes
     * @return 结果
     */
    @Override
    public int insertStandardNoEs(StandardNoEs standardNoEs)
    {
        standardNoEs.setCreateTime(DateUtils.getNowDate());
        return standardNoEsMapper.insertStandardNoEs(standardNoEs);
    }

    /**
     * 修改standardNoes
     * 
     * @param standardNoEs standardNoes
     * @return 结果
     */
    @Override
    public int updateStandardNoEs(StandardNoEs standardNoEs)
    {
        standardNoEs.setUpdateTime(DateUtils.getNowDate());
        return standardNoEsMapper.updateStandardNoEs(standardNoEs);
    }

    /**
     * 批量删除standardNoes
     * 
     * @param ids 需要删除的standardNoes主键
     * @return 结果
     */
    @Override
    public int deleteStandardNoEsByIds(String[] ids)
    {
        return standardNoEsMapper.deleteStandardNoEsByIds(ids);
    }

    /**
     * 删除standardNoes信息
     * 
     * @param id standardNoes主键
     * @return 结果
     */
    @Override
    public int deleteStandardNoEsById(String id)
    {
        return standardNoEsMapper.deleteStandardNoEsById(id);
    }
}
